package com.qf.service;

import com.github.pagehelper.PageInfo;
import com.qf.bean.User;
import com.qf.vo.UserAllVo;
import com.qf.vo.UserDetailVo;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Set;


public interface UserService {
    int insert(User user);
    User findBy(String realname);
    UserDetailVo finBy(String realname);
    //修改
    int update(User user);
//修改密码
    int updatE(User user);
    //模糊查询
    PageInfo<UserAllVo> findUserAll(int index, int size, String deptname, String realname);

    User findByUsername(String username);

    Set<String> findRoleNamesByUsername(String username);

    Set<String> findPermissionsByRoleNames(Set<String> roleNames);

    LinkedHashMap<String, String> findFilterChainDefinition();

    int del(String realname);

    int save(User user);

    List<UserAllVo> findByids(int[] userid);
    // 6. 查询超过三天未激活的用户.
    List<Integer> findNotActiveDevUserOverThreeDays();

    // 7. 根据ids删除用户信息.
    void deleteByIds(List<Integer> ids);

//修改历史的钱
    int updateqianBy(String username, int money);


//充值金额符合要求就要修改角色信息
int updaterolenaemBy(String username);

}
